package com.ruoyi.web.controller.delivery;

import com.github.pagehelper.PageInfo;
import com.jianqiao.delivery.delivery.domain.WarehouseAddEntity;
import com.jianqiao.delivery.delivery.service.WarehouseAddService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * author: cyx
 * create: 2024/6/4 15:29
 **/
@RestController
@RequestMapping("/warehouse")
public class WarehouseAddController {

    @Autowired
    private WarehouseAddService warehouseAddService;

    @GetMapping("/selectWarehouse")
    public AjaxResult selectWarehouse(int pageNum , int pageSize){
        PageInfo<WarehouseAddEntity> warehousePageInfo = warehouseAddService.selectWarehouseList(pageSize, pageNum);
        return AjaxResult.success(warehousePageInfo);
    }
}
